Mutter no longer picks the next focus window based on the stacking
order, but on the active workspace's MRU list. So to keep the old
activating behavior, raising other windows is no longer enough.
Use the newly added raise_and_make_recent() method to also move the
window to the front of the MRU list.
https://gitlab.gnome.org/GNOME/mutter/-/issues/2540
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2659>
MetaWindow *other_window = iter->data;
if (other_window != window && meta_window_get_workspace (other_window) == workspace)
- meta_window_raise (other_window);
+ meta_window_raise_and_make_recent (other_window);
}
g_slist_free (windows_reversed);